;(function($, window, document){ 'use strict'; var paypal=wc_ppec_context.use_checkout_js ? window.paypal:window.paypal_sdk; var showError=function(errorMessage, selector){ var $container=$('.woocommerce-notices-wrapper, form.checkout'); if(! $container||! $container.length){ $(selector).prepend(errorMessage); return; }else{ $container=$container.first(); } $('.woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message').remove(); $container.prepend('
' + errorMessage + '
'); $container.find('.input-text, select, input:checkbox').trigger('validate').blur(); var scrollElement=$('.woocommerce-NoticeGroup-checkout'); if(! scrollElement.length){ scrollElement=$container; } if($.scroll_to_notices){ $.scroll_to_notices(scrollElement); }else{ $('html, body').animate({ scrollTop:($container.offset().top - 100) }, 1000); } $(document.body).trigger('checkout_error'); } var getFundingMethods=function(methods){ if(! methods){ return undefined; } var paypal_funding_methods=[]; $.each(methods, function(index, method_name){ var method=paypal.FUNDING[ method_name.toUpperCase() ]; if(method){ paypal_funding_methods.push(method); }}); return paypal_funding_methods; } var renderCreditMessaging=function(buttonSelector){ if('undefined'===typeof wc_ppec_context.credit_messaging||! wc_ppec_context.credit_messaging||'undefined'===typeof paypal.Messages){ return; } if('undefined'!=typeof paypal.isFundingEligible&&! paypal.isFundingEligible(paypal.FUNDING.CREDIT)&&! paypal.isFundingEligible(paypal.FUNDING.PAYLATER)){ return; } if(0===$(buttonSelector).length){ return; } var messagingWrapper=$('
').prependTo(buttonSelector).get(0); paypal.Messages(wc_ppec_context.credit_messaging).render(messagingWrapper); } var render=function(isMiniCart){ var prefix=isMiniCart ? 'mini_cart_':''; var button_size=wc_ppec_context[ prefix + 'button_size' ]; var button_layout=wc_ppec_context[ prefix + 'button_layout' ]; var button_label=('undefined'!==wc_ppec_context[ prefix + 'button_label' ]) ? wc_ppec_context[ prefix + 'button_label' ]:wc_ppec_context['button_label']; var allowed=wc_ppec_context[ prefix + 'allowed_methods' ]; var disallowed=wc_ppec_context[ prefix + 'disallowed_methods' ]; var selector=isMiniCart ? '#woo_pp_ec_button_mini_cart':'#woo_pp_ec_button_' + wc_ppec_context.page; var fromCheckout='checkout'===wc_ppec_context.page&&! isMiniCart; const return_url=wc_ppec_context['return_url']; const cancel_url=wc_ppec_context['cancel_url']; if(! $(selector).length||$(selector).children().length){ return; } var button_args={ env: wc_ppec_context.environment, locale: wc_ppec_context.locale, commit: fromCheckout, funding: { allowed: getFundingMethods(allowed), disallowed: getFundingMethods(disallowed), }, style: { color: wc_ppec_context.button_color, shape: wc_ppec_context.button_shape, label: button_label, layout: button_layout, size: button_size, branding: true, tagline: false, }, validate: function(actions){ $('#woo_pp_ec_button_product').off('.legacy') .on('enable', actions.enable) .on('disable', actions.disable); }, payment: function(){ $('.woocommerce-error', selector).remove(); return new Promise(function(resolve, reject){ if('product'===wc_ppec_context.page&&! isMiniCart){ window.wc_ppec_generate_cart(resolve); }else{ resolve(); }}).then(function(){ var data=$(selector).closest('form') .add($(' ') .attr('value', wc_ppec_context.start_checkout_nonce) ) .add($(' ') .attr('value', fromCheckout ? 'yes':'no') ) .serialize(); var request_callback=function(response){ if(! response.success){ var messages=response.data ? response.data.messages:response.messages; if('string'===typeof messages){ showError(messages); }else{ var messageItems=messages.map(function(message){ return '
  • ' + message + '
  • '; }).join(''); showError('', selector); } return null; } return response.data.token; }; if(! wc_ppec_context.use_checkout_js){ return fetch(wc_ppec_context.start_checkout_url, { method: 'post', cache: 'no-cache', credentials: 'same-origin', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: data }).then(function(response){ return response.json(); }).then(request_callback); }else{ return paypal.request({ method: 'post', url: wc_ppec_context.start_checkout_url, body: data, }).then(request_callback); }}); }, onAuthorize: function(data, actions){ if(fromCheckout){ $('form.checkout') .append($(' ').attr('value', ! wc_ppec_context.use_checkout_js ? data.orderID:data.paymentToken)) .append($(' ').attr('value', data.payerID)) .submit(); }else{ if(! wc_ppec_context.use_checkout_js){ const query_args='?woo-paypal-return=true&token=' + data.orderID + '&PayerID=' + data.payerID; return actions.redirect(return_url + query_args); } return actions.redirect(); }}, onCancel: function(data, actions){ if(cancel_url&&'orderID' in data){ const query_args='?woo-paypal-cancel=true&token=' + data.orderID; return actions.redirect(cancel_url + query_args); }}, onError: function(){ jQuery(selector).empty(); render(); }, }; if(! wc_ppec_context.use_checkout_js){ if(! isMiniCart){ renderCreditMessaging(selector); } Object.defineProperty(button_args, 'createOrder', Object.getOwnPropertyDescriptor(button_args, 'payment')); Object.defineProperty(button_args, 'onApprove', Object.getOwnPropertyDescriptor(button_args, 'onAuthorize')); delete button_args['style']['size']; $(selector).addClass('wc_ppec_' + button_size + '_payment_buttons'); var args_to_remove=[ 'env', 'locale', 'commit', 'funding', 'payment', 'onAuthorize' ]; args_to_remove.forEach(function(arg){ delete button_args[ arg ] }); var disabledFundingSources=getFundingMethods(disallowed); if('undefined'===typeof(disabledFundingSources)||! disabledFundingSources||0===disabledFundingSources.length){ paypal.Buttons(button_args).render(selector); }else{ paypal.getFundingSources().forEach(function(fundingSource){ if(-1!==disabledFundingSources.indexOf(fundingSource)){ return; } var buttonSettings={ createOrder: button_args.createOrder, onApprove: button_args.onApprove, onError: button_args.onError, onCancel: button_args.onCancel, fundingSource: fundingSource, style:(paypal.FUNDING.PAYPAL===fundingSource) ? button_args.style:{ layout: button_args.style.layout }}; var button=paypal.Buttons(buttonSettings); if(button.isEligible()){ button.render(selector); }}); }}else{ paypal.Button.render(button_args, selector); }}; if(wc_ppec_context.page){ if('checkout'!==wc_ppec_context.page){ render(); } $(document.body).on('updated_cart_totals updated_checkout', render.bind(this, false)); } $(document.body).on('wc_fragments_loaded wc_fragments_refreshed', function(){ var $button=$('.widget_shopping_cart #woo_pp_ec_button_mini_cart'); if($button.length){ $button.empty(); render(true); }}); })(jQuery, window, document); document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?length<=index+1?0:index+1:index-1<0?length-1:index-1,$tabs.tabs("option","active",index))})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,active_tab,collapsible,$this=jQuery(this);$this.attr("data-interval"),collapsible=!1===(active_tab=!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function(e){e&&e.preventDefault&&e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);getColumnsCount(jQuery(this));jQuery(this).hasClass("columns_count_1")&&900;var carousel_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousel_li.css({"margin-right":carousel_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).on("resize",function(){screen_size!=(screen_size=getSizeName())&&window.setTimeout(function(){location.reload()},20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1')}),vc_initVideoBackgrounds(),callSkrollInit=!1,window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSize,skrollrStart,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),($parallaxElement=$("
    ").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),(youtubeId=vcExtractYoutubeId(parallaxImage))?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrStart=-(skrollrSize-100),$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll)}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();function getSizeName(){var screen_w=jQuery(window).width();return 1170
    ').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px"):(iframeH=(iframeW=containerW)*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px"),iframeW+="px",iframeH+="px",$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(url){if(void 0===url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),perspective=4*$this.width()+"px";$this.css("perspective",perspective)})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner");hoverBoxInner.css("min-height",0);var frontHeight=$this.find(".vc-hoverbox-front-inner").outerHeight(),backHeight=$this.find(".vc-hoverbox-back-inner").outerHeight(),hoverBoxHeight=backHeight

    There were no results for the place you entered. Please try another.

    '); }}); }); } function gon_loadApi($){ var apiKey=$('.google-map-canvas').data('google-map-api'); var apiUrl='https://maps.googleapis.com/maps/api/js?v=3.exp&callback=initialize'; if(apiKey){ apiUrl +='&key=' + apiKey; } var script=$('